//
//  DVCalendarVC.m
//  DVActivity
//
//  Created by pan Shiyu on 13-5-6.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import "DVCalendarVC.h"

@implementation DVCalendarVC{
    CKCalendarView *_calendar;
}

- (id)init {
    self = [super init];
    if (self) {
        _calendar = [[CKCalendarView alloc] initWithStartDay:startMonday];
        _calendar.frame = CGRectMake(10, 10, 300, 470);
        _calendar.delegate = self;
        [self.view addSubview:_calendar];
        
        self.view.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
//    [_calendar setDateBackgroundColor:[UIColor blueColor]];
//    [_calendar setSelectedDateBackgroundColor:[UIColor redColor]];
    
}

- (void)calendar:(CKCalendarView *)calendar didSelectDate:(NSDate *)date {
    
}

@end
